<?php
declare (strict_types = 1);

namespace app\mall\enum;

class ClerkStatusEnum extends Base
{

    public const VALID = 1;
    public const INVALID = 2;
    public const APPLY = 3;

    public static function toZhArray(): array
    {
        return [
            self::VALID => '有效',
            self::INVALID => '无效',
            self::APPLY => '申请中',
        ];
    }

    public function valid()
    {
        return $this->getValue() === self::VALID;
    }

    public function invalid()
    {
        return $this->getValue() === self::INVALID;
    }

}